import 'package:flutter/material.dart';

class ShowMapPage extends StatefulWidget {
  const ShowMapPage({Key? key}) : super(key: key);

  @override
  _ShowMapPageState createState() => _ShowMapPageState();
}

class _ShowMapPageState extends State<ShowMapPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          "通过flutter显示地图"
        ),
      ),
      body: Container(
        color: Colors.blueAccent.withAlpha(60),
        child: _getPlatformFaceView(),
      ),
    );
  }

  Widget _getPlatformFaceView() {
    return const OhosView(
      viewType: 'com.example.amap_flutter_location_ohos_example/amapview'
    );
  }

}
